<?php
/**
 * Created by PhpStorm.
 * User: gakuin
 * Date: 16/8/28
 * Time: 上午10:10
 */
use app\assets\AppAsset;
use yii\widgets\ActiveForm;
use yii\helpers\Html;

AppAsset::register($this);
$base =  Yii::$app->request->baseUrl;
AppAsset::addCss($this, $base . "/css/register.css");
AppAsset::addCss($this, $base . "/css/login.css");
$this->title = '找回密码';
?>
<div id="layout">
    <?php $form = ActiveForm::begin([
        'id' => 'reset-form',
        'options' => ['class' => 'form-horizontal'],
        'fieldConfig' => [
            'template' => "{label}\n<div class=\"col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>",
            'labelOptions' => ['class' => 'col-lg-1 control-label'],
        ],
    ]); ?>
    <?= $form->field($model, 'password')->passwordInput(['autofocus' => true,'placeholder'=>"请设置新密码"])?>
    <?= $form->field($model, 'password2')->passwordInput(['placeholder'=>"请再次输入新密码"])?>

    <?= Html::submitButton('完成', ['class' => 'submit', 'type' => 'button']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>